package com.baseweb.webadmin.core.util;

import java.util.Properties;

import com.baseweb.webadmin.core.util.Const.OS;

public class Global {
	public static boolean isOsInit = false;
	
	public static int os = OS.UNKOWN;
	
	static{
		if (!isOsInit) {
			Properties props=System.getProperties(); //获得系统属性集  
			String osName = props.getProperty("os.name"); //操作系统名称  
			
			if(osName.contains("Windows")){
				os = OS.WINDOWS;
			}else if(osName.contains("Linux")){
				os = OS.LINUX;
			}
			
			isOsInit = true;
		}
	}
}
